package com.example.requestdemo.service;

import com.example.requestdemo.vo.ResponsesVo;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * @author scxfsc
 */
//@RetrofitClient(baseUrl = "${test.baseUrl}")
//@RetrofitClient(baseUrl = "${test.baseUrl}")
@RetrofitClient(baseUrl = "${test.baseLoginUrl}")
public interface HttpApi {

    /**
     * 请求视频url地址
     * @param password
     * @return
     */
    @POST("pwtoroom")
    @FormUrlEncoded
    ResponsesVo queryVideoUrl(@Field("password") String password);

    /**
     * dynamicUrl
     *
     * @param url
     * @return
     */
    @POST
    ResponsesVo dynamicUrl(@Url String url);


    /**
     * 海顺登录破解
     * @param account
     * @param password
     * @return
     */
    @POST("hsdz/appuser/login")
    @FormUrlEncoded
    ResponsesVo login(@Field("account") String account, @Field("password") String password);
}
